package com.chen.demo.chater1;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class HelloController {
	@RequestMapping("/Hello")
	public String index(){
		return "HelloWorld";
	}
	@RequestMapping("/pass")
	public String login(){
		return "Welcome chen";
	}
	@RequestMapping("/register")
	public String register(){
		return "Your name has bean registered!";
	}
}
